/*
 * @description:
 * @Author: lal
 * @Date: 2020-05-26 16:26:12
 * @LastEditors: lal
 * @LastEditTime: 2020-05-26 17:01:29
 */

const { ipcMain } = require("electron");
const path = require("path");

ipcMain.on("ondragstart", (event, filepath) => {
  const iconName = "codeIcon.png";
  event.sender.startDrag({
    file: filepath,
    icon: path.join(__dirname, iconName),
  });
});
